<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: application_bottom.php 567 2015-02-28 12:41:21Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 567 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2015-02-28 12:41:21 +0000 (Sat, 28 Feb 2015) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */
if(DISPLAY_PAGE_PARSE_TIME == 'true') {
	$time_start = explode(' ', PAGE_PARSE_START_TIME);
	$time_end = explode(' ', microtime());
	$parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);
	echo '<div id="parsetime">Parse Time: '.$parse_time.'s</div>';
}

if(ETRACKER_CODE !='') {
	echo '<script async="" type="text/javascript">document.write(String.fromCharCode(60)+"script type="text/javascript" src="http"+("https:"==document.location.protocol?"s":"")+"://code.etracker.com/t.js?et='.ETRACKER_CODE.'\">"+String.fromCharCode(60)+"/script>");</script>
			<script async="" type="text/javascript">_etc();</script>
			<noscript><a href="http://www.etracker.com"><img alt="" src="https://www.etracker.com/nscnt.php?et='.ETRACKER_CODE.'" /></a></noscript>';
}

if(defined('LIST_NAME'))
	$get[] = 'list_type='.LIST_NAME;

if(is_object($xajax))
	$get[] = 'ajax=1';

if(isset($_GET['minp'])) {
	$get[] = 'minp='.$_GET['minp'];
	$get[] = 'maxp='.$_GET['maxp'];
}
if(!empty($current_category_id))
	$get[] = 'ct='.$current_category_id;

$get[] = 'lc='.$_SESSION['language_code'];

if (isset($_POST['js_get'])) {
  foreach($_POST['js_get'] as $k => $v) {
    if ($k == 'add') {
      for($idx=0; $idx<count($v); $idx++) {
        $get[] = 'add['.$idx.']='.$v[$idx];
      }
    }
    else
      $get[] = $k .'='. $v;
  }
}  

if(!$browser->isMobile(USE_MOBILE_TEMPLATE)) {
//	echo '<script async="" type="text/javascript" src="java.js.php?'.implode('&amp;', $get).'" charset="utf-8"></script>'."\n";
	echo '<script type="text/javascript" src="'.href_link('java.js.php', implode('&amp;', $get), 'SSL').'" charset="utf-8"></script>'."\n";
	
	if($product->data['products_treepodia'] == 1) {
		echo '<script async="" type="text/javascript">document.write(unescape("%3Cscript src=\'"+document.location.protocol+"//api.treepodia.com/utils/fancy-dialog.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>';
		echo '<script async="" type="text/javascript">document.write(unescape("%3Cscript src=\'"+document.location.protocol+"//api.treepodia.com/video/Treepodia.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script>';
	}
}

if($message_stack->size > 0) { ?><script type="text/javascript">$(function(){<?php echo $message_stack->output(); ?>});</script><?php }

update_whos_online();
$db->db_close();
$console->display();
?>
</body>
</html>
<?php
if((GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1)){
	require(DIR_FS_INC.'inc.gzip_output.php');
	gzip_output(GZIP_LEVEL);
}